export let mathAdapter: { adapter: IMathAdapter } = { adapter: undefined };

export interface IMathAdapter {
    getPI(): number;
    abs(x: number): number
    acos(x: number): number
    asin(x: number): number
    atan(x: number): number
    toNumber(obj: any): number
    toString(obj: any): string
    atan2(y: number, x: number): number
    ceil(x: number): number
    cos(x: number): number
    floor(x: number): number
    random(min: number, max: number): number
    randomReal(min: number, max: number): number
    round(x: number): number
    sin(x: number): number
    min(...values: number[]): number;
    max(...values: number[]): number;
    sqrt(x: number): number
    tan(x: number): number
    toFixed(number: number, fixNum: number): number
}